package com.zjitc.service;

import com.zjitc.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;


public interface UserService {
    int addUser(User user);
    int deleteUser(Integer id);
    int updateUser(User user);
    User getUserId(int id);
    List<User> getUserPage(@Param("offset")int offset, @Param("pageSize")int pageSize);
    int pageCount();
    int countByKeyword(String keyword);
    List<User> search(@Param("keyword")String keyword,@Param("offset")int offset,@Param("pageSize")int pageSize);
}
